package light.head.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 照片
 */
@Entity
@Table
public class Photo implements Serializable {

	
	private static final long serialVersionUID = 1564982935539772056L;
	
	
	private Integer code;
	private String name;					// 名称
	private Date ct;						// 上传时间
	private Boolean deleted;				//是否删除
	private Integer cu;						// 上传人
	private String remark;					// 备注
	private String uuid;					//路径
	private String ext;						//后缀
	private Integer size;					//大小
	private Integer alc;					// 相册编号
	private Integer oc;						// 机构编号
	private Boolean cover = false;					// 是否是封面
	
	
	
	
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column(length = 50)
	public String getName() {
		return name;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(updatable = false, nullable = false)
	public Date getCt() {
		return ct;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Column(length = 200)
	public String getRemark() {
		return remark;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	
	@Column
	public String getUuid() {
		return uuid;
	}
	
	@Column
	public String getExt() {
		return ext;
	}
	
	@Column
	public Integer getSize() {
		return size;
	}
	@Column
	public Boolean getCover() {
		return cover;
	}
	@Column
	public Integer getAlc() {
		return alc;
	}
	
	@Column
	public Integer getOc() {
		return oc;
	}
	
	
	
	
	
	
	
	
	
	
	public void setCover(Boolean cover) {
		this.cover = cover;
	}
	public void setOc(Integer oc) {
		this.oc = oc;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	public void setAlc(Integer alc) {
		this.alc = alc;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	
}
